package com.purong.purong.activity;

import android.widget.TextView;

import com.purong.purong.R;
import com.purong.purong.bean.MsgBean;
import com.purong.purong.bean.NoticeBean;
import com.purong.purong.widget.JustifyTextView;


/**
 * Created by wenjiezeng on 2017/10/4.
 */
public class SysMsgDetActivity extends BaseActivity {
    private TextView title,dateDet;
    private JustifyTextView content;
    private MsgBean bean;

    @Override
    public void initView(){
        showBack();
        showTitle("消息详情");
        title=(TextView)findViewById(R.id.title);
        dateDet=(TextView)findViewById(R.id.date_det);
        content=(JustifyTextView)findViewById(R.id.content);

    }

    @Override
    public void initData() {
        bean=(MsgBean)getIntent().getSerializableExtra("MSG");
        setData();
    }

    @Override
    public int getRootViewId() {
        return R.layout.activity_msg_detial;
    }

    private void setData(){
        if (bean==null)
            return;

        title.setText(bean.getMessage_title());
        dateDet.setText(bean.getCreate_time());
        content.setText(bean.getMessage_content());

    }
}
